package kuzha.ast;

public class IfStatementTest extends Node {
	public final Expression cond;
	public final Statement _then;
	
	public IfStatementTest(Expression cond, Statement _then) {
		super();
		if (cond == null || _then == null)
			throw new IllegalArgumentException();
		this.cond = cond;
		this._then = _then;
	}
	
	@Override
	public void accept(AstVisitor visitor) {
		visitor.visit(this);
	}
	@Override
	public <A, R> R accept(AstVisitor2<A, R> visitor, A object) {
		return visitor.visit(this, object);
	}
}
